package com.itheima.service;


import com.itheima.bean.vo.AddUser;
import com.itheima.bean.vo.PageBean;
import com.itheima.bean.vo.Pagination;
import com.itheima.bean.vo.UpdateUser;
import org.springframework.transaction.annotation.Transactional;

//业务层：接口
public interface UserService {

    public PageBean queryUserByPage(Pagination pagination);


    @Transactional
    public boolean addUserAndRole(AddUser user);


    @Transactional
    boolean updateUserAndRole(UpdateUser user);
}
